import Layout from '@/layout/index.vue';

export default [
  {
    path: '/workspace',
    component: Layout,
    children: [
      {
        path: 'addOrEditArticle',
        // name: 'AddOrEditArticle',
        component: () => import('@/views/logic/article/addOrEdit.vue'),
        hidden: true,
        alwaysShow: true,
        meta: {
          title: '添加文章',
          activeMenu: '/workspace/logic/articleNew/index',
          breadcrumb: false,
          noCache: true
        }
      },
      {
        path: 'addOrEditProduct',
        // name: 'AddOrEditProduct',
        component: () => import('@/views/logic/product/addOrEdit.vue'),
        hidden: true,
        alwaysShow: true,
        meta: {
          title: '添加产品',
          activeMenu: '/workspace/logic/productNew/index',
          breadcrumb: false,
          noCache: true
        }
      },
      {
        path: 'addOrEditAgreement',
        // name: 'AddOrEditAgreement',
        component: () => import('@/views/logic/agreement/addOrEdit.vue'),
        hidden: true,
        alwaysShow: true,
        meta: {
          title: '添加协议',
          activeMenu: '/workspace/logic/agreement/index',
          breadcrumb: false,
          noCache: true
        }
      }
    ]
  }
];
